{
	"info": {
		"_postman_id": "ba34dbaa-debb-40d0-8897-e6bd8654b26c",
		"name": "poc",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "v0",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "http://localhost:8080/api/v0/{{table}}",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "8080",
					"path": [
						"api",
						"v0",
						"{{table}}"
					]
				}
			},
			"response": []
		},
		{
			"name": "v1",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "http://localhost:8080/api/v1/{{table}}?descriptionFilter={{searchString}}",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "8080",
					"path": [
						"api",
						"v1",
						"{{table}}"
					],
					"query": [
						{
							"key": "descriptionFilter",
							"value": "{{searchString}}"
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "v2",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "http://localhost:8080/api/v2/{{table}}?descriptionFilter={{searchString}}&page=0&size=25",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "8080",
					"path": [
						"api",
						"v2",
						"{{table}}"
					],
					"query": [
						{
							"key": "descriptionFilter",
							"value": "{{searchString}}"
						},
						{
							"key": "page",
							"value": "0"
						},
						{
							"key": "size",
							"value": "25"
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "v3",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "http://localhost:8080/api/v3/{{table}}?descriptionFilter={{searchString}}&page=0&size=25&sortColumn=description&sortOrder=DESC",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "8080",
					"path": [
						"api",
						"v3",
						"{{table}}"
					],
					"query": [
						{
							"key": "descriptionFilter",
							"value": "{{searchString}}"
						},
						{
							"key": "page",
							"value": "0"
						},
						{
							"key": "size",
							"value": "25"
						},
						{
							"key": "sortColumn",
							"value": "description"
						},
						{
							"key": "sortOrder",
							"value": "DESC"
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "v4/fetchFoodsWithPagination",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "http://localhost:8080/api/v4/{{table}}?descriptionFilter={{searchString}}&page=0&size=25&sortColumn=description&sortOrder=DESC",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "8080",
					"path": [
						"api",
						"v4",
						"{{table}}"
					],
					"query": [
						{
							"key": "descriptionFilter",
							"value": "{{searchString}}"
						},
						{
							"key": "page",
							"value": "0"
						},
						{
							"key": "size",
							"value": "25"
						},
						{
							"key": "sortColumn",
							"value": "description"
						},
						{
							"key": "sortOrder",
							"value": "DESC"
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "v4/fetchFoodById/",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "http://localhost:8080/api/v4/{{table}}/{{idToRead}}",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "8080",
					"path": [
						"api",
						"v4",
						"{{table}}",
						"{{idToRead}}"
					]
				}
			},
			"response": []
		},
		{
			"name": "v4/saveFood",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"code\": \"40001\",\n    \"description\": \"Pizza con ananas\"\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "http://localhost:8080/api/v4/{{table}}/",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "8080",
					"path": [
						"api",
						"v4",
						"{{table}}",
						""
					]
				}
			},
			"response": []
		},
		{
			"name": "v4/searchFood",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n\"filters\": [],\n\"sorts\": [],\n\"page\": null,\n\"size\": null\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "http://localhost:8080/api/v4/{{table}}/search",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "8080",
					"path": [
						"api",
						"v4",
						"{{table}}",
						"search"
					]
				}
			},
			"response": []
		},
		{
			"name": "v4/patchFood",
			"request": {
				"method": "PATCH",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"description\": \"Pizza con ananas è illegale\"\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "http://localhost:8080/api/v4/{{table}}/{{idToPatch}}",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "8080",
					"path": [
						"api",
						"v4",
						"{{table}}",
						"{{idToPatch}}"
					]
				}
			},
			"response": []
		},
		{
			"name": "v4/putFood",
			"request": {
				"method": "PUT",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"code\": \"40001\",\n    \"description\": \"Pizza con ananas DA CANCELLARE\"\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "http://localhost:8080/api/v4/{{table}}/{{idToPatch}}",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "8080",
					"path": [
						"api",
						"v4",
						"{{table}}",
						"{{idToPatch}}"
					]
				}
			},
			"response": []
		},
		{
			"name": "v4/deleteFood",
			"request": {
				"method": "DELETE",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "http://localhost:8080/api/v4/{{table}}/{{idToDelete}}",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "8080",
					"path": [
						"api",
						"v4",
						"{{table}}",
						"{{idToDelete}}"
					]
				}
			},
			"response": []
		}
	],
	"auth": {
		"type": "basic",
		"basic": [
			{
				"key": "password",
				"value": "resu",
				"type": "string"
			},
			{
				"key": "username",
				"value": "user",
				"type": "string"
			}
		]
	},
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		}
	],
	"variable": [
		{
			"key": "idToRead",
			"value": "1",
			"type": "string"
		},
		{
			"key": "idToPatch",
			"value": "101",
			"type": "string"
		},
		{
			"key": "idToDelete",
			"value": "101",
			"type": "string"
		},
		{
			"key": "table",
			"value": "foods",
			"type": "string"
		},
		{
			"key": "searchString",
			"value": "fruit",
			"type": "string"
		}
	]
}